预览:这是你今天要写的拟人笑话的例子!

  • 按空格键让小行星四处飞行!
  • 点击精灵查看笑话的结束语!
  • 点击 提交 下一步,开始构建自己的卡片。

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("moon") sprite = codesters.Sprite("astronaut1") sprite.go_to(-125, -50) #my_sprite.say("I can't wait for the holidays!") glorp = codesters.Sprite("alien1") glorp.go_to(100, -100) rock = codesters.Sprite("asteroid") rock.go_to(100, 75) sprite.say("What do planets like to read?") sprite.set_say_color("white") def click(sprite): sprite.say("Comet books!") sprite.move_up(100) sprite.turn_left(360) sprite.move_down(100) # add other actions... sprite.event_click(click) def space_bar(): rock.set_x_speed(5) rock.set_y_speed(2) stage.event_key("space", space_bar)
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)